<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href = "../css/bootstrap.min.css">
    <title>按钮样式</title>
</head>
<body>
<div class="container">
    <legend>按钮</legend>
    <a class="btn btn-default" href="#" role="button">Link</a>
    <button class="btn btn-default" type="submit">Button</button>
    <input type="button" class="btn btn-default" value="input"/>
    <input type="submit" class="btn btn-default" value="submit">
    <hr>
    <!-- Standard button -->
    <button type="button" class="btn btn-default">（默认样式）Default</button>

    <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
    <button type="button" class="btn btn-primary">（首选项）Primary</button>

    <!-- Indicates a successful or positive action -->
    <button type="button" class="btn btn-success">（成功）Success</button>

    <!-- Contextual button for informational alert messages -->
    <button type="button" class="btn btn-info">（一般信息）Info</button>

    <!-- Indicates caution should be taken with this action -->
    <button type="button" class="btn btn-warning">（警告）Warning</button>

    <!-- Indicates a dangerous or potentially negative action -->
    <button type="button" class="btn btn-danger">（危险）Danger</button>

    <!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
    <button type="button" class="btn btn-link">（链接）Link</button>

    <!--  按钮尺寸  -->
    <p>
        <button type="button" class="btn btn-primary btn-lg">大按钮</button>
        <button type="button" class="btn btn-default btn-lg">大按钮</button>
    </p>
    <p>
        <button type="button" class="btn btn-primary">默认按钮</button>
        <button type="button" class="btn btn-default">默认按钮</button>
    </p>
    <p>
        <button type="button" class="btn btn-primary btn-sm">小按钮</button>
        <button type="button" class="btn btn-sm">小按钮</button>
    </p>
    <p>
        <button type="button" class="btn btn-primary btn-xs">超小按钮</button>
        <button type="button" class="btn btn-xs">超小按钮</button>
    </p>

    <button type="button" class="btn btn-primary btn-lg btn-block">（块级元素）Block level button</button>
    <button type="button" class="btn btn-default btn-lg btn-block">（块级元素）Block level button</button>

    <!--  按钮状态  -->
    <p>
        <button type="button" class="btn btn-primary btn-lg disabled">禁用按钮</button>
        <a href="#" class="btn btn-default btn-lg active" role="button">激活连接按钮</a>
        <button type="button" class="btn btn-default btn-lg active">激活按钮</button>
    </p>
</div>
</body>
</html>